package com.soft.util;

import java.io.IOException;
import java.util.Properties;

public class PropUtil {

	static Properties properties = new Properties();

	static{
		try {
			//类加载器 可以加载classpath下的文件
			properties.load(Connect.class.getClassLoader().getResourceAsStream("com/soft/util/jdbc.properties"));

		} catch (IOException e) {

			e.printStackTrace();
		}
	}

	public static String getProperty(String key){
		return properties.getProperty(key);

}

}
